package com.qcby.llmtchstd.service.Impl;

import com.qcby.llmtchstd.dao.UserLoginDao;
import com.qcby.llmtchstd.entity.Student;
import com.qcby.llmtchstd.entity.Teacher;
import com.qcby.llmtchstd.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.dc.pr.PRError;

@Service
public class UserLoginServiceImpl implements UserLoginService {
    @Autowired
    private UserLoginDao userLoginDao;
    @Override
    public Teacher teacherLogin(String name, String password) {
        return userLoginDao.teacherLogin(name,password);
    }

    @Override
    public Student studentLogin(String name, String password) {
        return userLoginDao.studentLogin(name,password);
    }

    @Override
    public Student studentCurrent(int id) {
        return userLoginDao.studentCurrent(id);
    }

    @Override
    public Teacher teacherCurrent(int id) {
        return userLoginDao.teacherCurrent(id);
    }
}
